package com.zuo.demo01.dao;


import com.zuo.demo01.pojo.Catagory;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface CatagoryMapper {

    public List<Catagory> findAll();

    public List<Catagory> findByPage(Map<String,Integer> map);

    public Catagory findByName(Map<String,Object> map);

    public int count();

    public int insert(Catagory catagory);

    public int delete(int id);

    public int update(Catagory catagory);


}
